import requests from "./ajax";

export  const getCateGory=()=> {
  return requests({
    url: "/category",
  });
}

export function getSubCategory(maitKey) {
  return requests({
    url: "/subcategory",
    params: {
      maitKey,
    },
  });
}

export function getCategoryDetail(miniWallkey, type) {
  return requests({
    url: "/subcategory/detail",
    params: {
      miniWallkey,
      type,
    },
  });
}
